<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
	<rich:popupPanel id="Messagespopup" modal="true" autosized="true" resizeable="false" moveable="false" show="#{sessionManagerBean.messageAvailable}">
        <f:facet name="header">
            <center><h:outputText styleClass="#{sessionManagerBean.messageStyle}" value="#{sessionManagerBean.messageLabel.toString()}" /></center>
        </f:facet>
       <rich:list value="#{sessionManagerBean.messages}"  var="value">
       	<h:outputLabel value="#{value}" styleClass="#{sessionManagerBean.messageStyle.toString()}"/>
       </rich:list>
       <center><a4j:commandButton id="MessagesOkButton" value="Ok" execute="@this" action="#{sessionManagerBean.clearMessages()}" oncomplete="#{rich:component('Messagespopup')}.hide();return false;"/></center>
    </rich:popupPanel>
    
</ui:composition>
